home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 January / Disc 3 / Amethyst.iso / live / etc / makedev.d / filedesc < prev    next >
Encoding:
Text File  |  2002-11-06  |  259 b   |  9 lines

  1. $numdevs{$name} = 4;    $stddevs{$name} = "^(.*)\$";
  2.  
  3. $generate{$name} = sub {
  4.     $i == 0 && &$SymLink("/proc/self/fd", "fd");
  5.     $i == 1 && &$SymLink("fd/0", "stdin");
  6.     $i == 2 && &$SymLink("fd/1", "stdout");
  7.     $i == 3 && &$SymLink("fd/2", "stderr");
  8. };
  9.